package com.ujson.chat.client.builder;

import com.ujson.chat.common.proto.MessageProto;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <h3>ujson-parent</h3>
 * <p>心跳请求消息构造器</p>
 *
 * @author JerryLiu  a1031757312@gmail.com
 * @version 1.0
 * @date 2021-11-29 20:39
 */
@Slf4j
@Service
public class HeartbeatRequestBuilder extends AbstractBuilder {
    @Override
    public MessageProto.MessageType getType() {
        return MessageProto.MessageType.KEEPALIVE_REQUEST;
    }

    public MessageProto.Message build(Channel channel) {
        return super.commonBuild(channel);
    }

}
